<template>
	<view>
		<view class="uni-status-bar" style="background:#fff"></view>
		<view class="hb-header">
			<view class="left">
				<view class="uni-page-head-btn"><i class="uni-btn-icon" style="color: rgb(0, 0, 0); font-size: 27px;"
						@click="back"></i></view>
			</view>
			<view class="title">{{$t('password')}}</view>
		</view>
		<view class="password pd15">
			<view class="item flexSpace" @click="onNative('/pages/my/password/modify-login')">
				<view class="left">
					<image src="@/static/my/pass.png" mode="" class="flexIconSmall"></image>
					<view class="label">{{$t('password.loginModify')}}</view>
				</view>
				<view class="right">
					<image src="@/static/images/arrow-right-icon.png" mode=""></image>
				</view>
			</view>
			<view class="item flexSpace" @click="onNative('/pages/my/password/modify-transaction')">
				<view class="left">
					<image src="@/static/my/pass1.png" mode="" class="flexIconSmall"></image>
					<view class="label">{{$t('password.transaction')}}</view>
				</view>
				<view class="right">
					<image src="@/static/images/arrow-right-icon.png" mode=""></image>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			back() {
				uni.navigateBack({
					delta: 1
				});
			},
			onNative(url) {
				uni.navigateTo({
					url: url
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.password {
		padding: 0 32rpx;

		.item {
			padding: 32rpx 0;
			border-bottom: .5px solid $hb-line-color;
			align-items: center;

			&:last-child {
				border: 0
			}

			.left {
				display: flex;
				align-items: center;

				.label {
					display: inline-block;
					font-size: 28rpx;
					color: $hb-text-black-color;
					margin-left: 20rpx;
				}
			}

			.right {
				image {
					width: 16rpx;
					height: 30rpx;
				}
			}
		}
	}
</style>
